allocate Array memory at runtime

Hello everyone,

 

My question is about the Topic of dynamic Memory allocataion in dxl.

In detail is it possible to allocate the meomory or in other words to set the size of the Array at run time.

Something like malloc or calloc in C.

 


Patrick_1 - Mon Jun 11 08:38:12 EDT 2018

Re: allocate Array memory at runtime
Mathias Mamsch - Mon Jun 11 08:56:25 EDT 2018

Almost all datastructures in DXL are dynamic:

- the Array type resizes automatically

- the simple arrays can be allocated dynamically at runtime and are allocated on the stack:

     int i = 1000; string myArray[i];

- Buffers resize automatically

- Skip lists have no size limit

The question would be: Is it possible to NOT allocate memory dynamically. Maybe this helps. Regards, Mathias